#pragma once
#include <Windows.h>
#include <memory>
#include <string>
#include <socketapi.h>
#include "RCMacros.h"

class RCHTTPClient
{
protected:

	SOCKET thisSocket;

	std::string Host;
	int Port;
	
	std::string ReceiveLine();
	void   SendLine (std::string msg);

public:
	DECLDIR RCHTTPClient(void);
	DECLDIR RCHTTPClient(std::string host, int port);
	DECLDIR virtual ~RCHTTPClient(void);

	DECLDIR std::string GetPage(std::string url);

	DECLDIR std::string GetHost();
	DECLDIR int GetPort();
};

